package com.boyon.customer.service.customer;

import java.util.List;

import com.boyon.customer.domain.CustomerData;
import com.boyon.hbm.criteria.Query;

/**
 * ClassName:CustomerService <br/>
 * Function: 客户资源接口定义. <br/>
 * Date: 2018年4月2日 下午9:52:45 <br/>
 * 
 * @author sunshulin
 * @version
 * @since JDK 1.8
 * @see
 */
public interface CustomerServiceInterface {
	
	public Integer getType();

	/**
	 * 
	 * editor:新增客户档案信息. <br/>
	 * 
	 * @author sunshulin
	 * @param customerData
	 * @return
	 * @since JDK 1.8
	 */
	public Long save(CustomerData customerData);

	/**
	 * 
	 * editor:修改客户档案信息. <br/>
	 * 
	 * @author sunshulin
	 * @param customerData
	 * @return
	 * @since JDK 1.8
	 */
	public Long editor(CustomerData customerData);

	/**
	 * 
	 * delete:删除客户档案ID. <br/>
	 * 
	 * @author sunshulin
	 * @param customerId
	 * @return
	 * @since JDK 1.8
	 */
	public Long delete(Long customerId);

	/**
	 * 
	 * findByCustomerId:查找客户档案信息. <br/>
	 * 
	 * @author sunshulin
	 * @param customerId
	 * @return
	 * @since JDK 1.8
	 */
	public CustomerData findByCustomerId(Long customerId);

	/**
	 * 
	 * query:查找客户档案. <br/>
	 * 
	 * @author sunshulin
	 * @param customerData
	 * @return
	 * @since JDK 1.8
	 */
	public List<CustomerData> query(CustomerData customerData, Query query);
	
	/**
	 * 
	 * resetPass:重置账号密码. <br/> 
	 * 
	 * @author sunshulin 
	 * @param customerId 
	 * @since JDK 1.8
	 */
	public void resetPass(Long customerId);

}
